import {getValue,isObject,cloneDeep} from '../tools/ObjectTools'
const objectMixin = {
    methods: {
        $_object_getValue: function (obj,prop,param) {
            let r =  getValue(obj,prop)
            if(typeof r == 'function'){
                return r(param)
            }
            return r
        },
        $_object_isObject: function (obj) {
            return isObject(obj)
        },
        $_object_cloneDeep: function (obj) {
            return cloneDeep(obj)
        }
    }
}
export default objectMixin